home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Financial / Stopwatch2.3 / Source / StopWatch.h < prev    next >
Text File  |  1995-06-12  |  559b  |  25 lines

  1. /*
  2.  * Stopwatch/time support for Stopwatch app.
  3.  * Author: Rich Plevin
  4.  *
  5.  * For legal stuff see the file COPYRIGHT
  6.  */
  7. #import <sys/time.h>
  8. #import <appkit/appkit.h>
  9.  
  10. @interface StopWatch:Object
  11. {
  12.   BOOL            running;
  13.   struct timeval    start;
  14.   struct timeval    finish;
  15. }
  16.  
  17. - startWatch;            /* start the watch */
  18. - stopWatch;            /* stop the watch */
  19. - (BOOL) running;        /* are we running? */
  20. - (const char *) elapsedTime;    /* return a string showing elapsed time in mins */
  21. - (int) elapsedMinutes;
  22. - (const char *)startTimeString;
  23. - (const char *)startDateString;
  24. @end
  25.